<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=8" />

	<title>HSMP-<?php $this->_block('title'); ?><?php $this->_endblock(); ?></title>
	<meta name="description" content="A web applications user interface library built on the Mootools JavaScript framework" />

	<link rel="stylesheet" type="text/css" href="<?php echo $_BASE_DIR; ?>themes/default/css/Content.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $_BASE_DIR; ?>themes/default/css/Core.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $_BASE_DIR; ?>themes/default/css/Layout.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $_BASE_DIR; ?>themes/default/css/Dock.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $_BASE_DIR; ?>themes/default/css/Window.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $_BASE_DIR; ?>themes/default/css/Tabs.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $_BASE_DIR; ?>js/tablecloth.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $_BASE_DIR; ?>css/redmond.datepick.css">
	<link rel="stylesheet" type="text/css" href="<?php echo $_BASE_DIR; ?>css/blue.covertape.css">
	<script type="text/javascript" src="<?php echo $_BASE_DIR; ?>js/jquery-1.3.2.min.js"></script>
	<script type="text/javascript" src="<?php echo $_BASE_DIR; ?>js/jquery.datepick.min.js"></script>
	<script type="text/javascript" src="<?php echo $_BASE_DIR; ?>js/jquery.covertape-0.3.js"></script>
	<script type="text/javascript" src="<?php echo $_BASE_DIR; ?>js/tablecloth.js"></script>
	<link rel="stylesheet" type="text/css" href="<?php echo $_BASE_DIR; ?>css/hids_style.css">
	<link rel="stylesheet" type="text/css" href="<?php echo $_BASE_DIR; ?>css/redmond.datepick.css">
	<link rel="stylesheet" type="text/css" href="<?php echo $_BASE_DIR; ?>css/blue.covertape.css">
	<script type="text/javascript">
		jQuery(document).ready(function(){
		  jQuery("#xia").datecontrol({format:"yyyy-mm-dd"});
		  var sd=$("#startd").val();
		  var ed=$("#endd").val();

		  //alert(sd);
		  var nd=showDate();
		  //alert(nd+ed+sd);
		  if(sd=='' && ed==''){
			//alert('212332');
		  }else{
			//alert('1233');
			jQuery("input[name=startdate]").html(sd);
			jQuery("input[name=startdate]").val(sd);
			jQuery("input[name=enddate]").html(ed);
			jQuery("input[name=enddate]").val(ed);
			var k1 = sd.split(' ');
			var k2 = ed.split(' ');
			//alert(k1.length);
			if(k1.length>1)sd=k1[0];
			if(k2.length>1)ed=k2[0];
			jQuery(".view_date").html(sd+' - '+ed);
			//alert(sd);alert(ed);
		  }

		  
		  //alert(showDate());
		});



		function showDate()   
		{   
			var today = new Date();   
			var day = today.getDate();   
			var month = padLeft(today.getMonth() + 1,2);   
			var year = today.getFullYear();   
			var date = year + "-" + month + "-" + day;   
			return date;   
		}

		function padLeft(str,lenght){   
		  if(str.length >= lenght)   
		   return str;   
		  else  
		   return padLeft("0" +str,lenght);   
		} 

	</script>
</head>
<body>

</head>
<body style="margin:10px;">

<?php $this->_block('contents'); ?><?php $this->_endblock(); ?>

</body>
</html>